<?php 

namespace Admin\Controller;
use Admin\Controller\CommonController;

/**
 *   基本设置 
 */
class BaseController extends CommonController
{
	public function index()
	{
		/*
		1. 站点名称： 从零开始

		2. 站点描述： from zero

		3. 关键词 以半角逗号分隔多个关键字

		4. 是否允许注册

		5.
		[
			"web_name" => "TOZERO-从零开始",
			"web_desc" => "在线问答系统，包括后端和前段的问题",
			"web_keywords" => "PHP,javascript,mysql,linux,mvc,jquery,ajax,bootstrap,wechat,nodejs",
			"web_isRegister" => "yes" // no不能注册  yes 可以注册
		]
		 */
		if (IS_POST) {
			$data = I("post.");
			session("website_info", $data);
			show(1, "更新成功");
		}
		$website_info = session("website_info");
		// dump($website_info);
		// die;
		$this->assign("website_info",$website_info);
		$this->display();
	}	

}